<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../attr.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- Begin: Content -->
      <section id="content" class="table-layout">
<!--start 内容--------------------------->	
 <form  method="post" id="dataForm" name="dataForm">
		 <!-- create new order panel -->
          <div class="panel mb25 mt5">
            <div class="panel-heading">
              <span class="panel-title hidden-xs"></span>
              <ul class="nav panel-tabs-border panel-tabs">
                <li class="active">
                  <a href="#tab1_1" data-toggle="tab">无条码包回收登记</a>
                </li>
              </ul>
            </div>
            <div class="panel-body p20 pb10">
              <div class="tab-content pn br-n admin-form">
                <div id="tab1_1" class="tab-pane active">
				  <div class="section row">
				  <div class="col-md-6">   
                    	拼音简码              	
                      <label for="departmentCode" class="field prepend-icon">
                        <input name="departmentCode" id="departmentCode" class="gui-input" type="text"  >
                        <label for="departmentCode" class="field-icon">
                          <i class="fa fa-tag"></i>
                        </label>
                      </label>
                    </div>
                    <div class="col-md-6"> 
	                    <table class="table table-bordered admin-form theme-warning tc-checkbox-1 fs13">
		                  <thead>
		                    <tr class="bg-light">
		                      <th class="text-left">科室名称</th>
		                    </tr>
		                  </thead>
		                  <tbody>
		                  	<c:if test="${tdList != null }">
				    		<c:forEach items="${tdList }" varStatus="v" var="department">
		                    <tr>
		                      <td class="text-left" onclick="retVal('${department.departmentName}')">${department.departmentName}</td>
		                    </tr>
		                    </c:forEach>
			    			</c:if>
		                  </tbody>
	                	</table>
                	</div>
                  </div>
                 </div>
              </div>
            </div>
          </div>
</form>		 
<!-- end 内容----------------------------->		
      </section>
      <!-- End: Content --> 
  <!-- End: Main -->
<script src="${ctx}/js/utility.js"></script>
<script src="${ctx}/js/main.js"></script> 
<script src="${ctx}/js/demo.js"></script>
  
  <script type="text/javascript">
//   function dataList(){
// 	  window.location.href="${ctx}/package/findAllPackageList.do";
//   }	
 function do_queryDep(){
		//window.location.href="${ctx}/zsWanglan/edit.do";
		layer.open({
			type: 2,
			title: '科室名称',
			maxmin: true,
			shadeClose: true, //点击遮罩关闭层
			area : ['800px' , '520px'],
			content: '${ctx}/zsWanglan/findHuishouAllDepartment.do'
		});
	}
 function retVal(obj){
	 parent.$('#packageDepartId').val(obj);
	 var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
 	 parent.layer.close(index); //再执行关闭 
 }
  jQuery(document).ready(function() {
	    "use strict";   
	    Core.init();  
	    Demo.init();
	    $("#back").click(function(){
	    	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	    	parent.layer.close(index); //再执行关闭 
	    });
		$('#queryDep').click(function(){
			do_queryDep();
		});
	
  });
 
  </script>
  </body>
</html>
